<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="./template/StakeholderTemplate.xhtml">
    <ui:define name="contentInsert">
    <h:body>
        <h:form id="formMain">  

            <p:dataTable var="confirmation" value="#{reservationManagerBean.fandBConfirmed}" paginator="true" rows="10" >

                <f:facet name="header">  
                    List of Confirmed Reservation 
                </f:facet>    

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Customer Name" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.customer.name}" />  
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Reservation ID" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.id}" />  
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Time start" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.timeBegin}" />  
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Time end" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.timeEnd}" />  
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Confirmation" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.confirmation}" />  
                </p:column>  
            </p:dataTable>  
            
            <p:dataTable var="confirmation" value="#{reservationManagerBean.fandBRejected}" paginator="true" rows="10" >

                <f:facet name="header">  
                    List of Rejected Reservation 
                </f:facet>    

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Customer Name" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.customer.name}" />  
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Reservation ID" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.id}" />  
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Time start" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.timeBegin}" />  
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Time end" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.timeEnd}" />  
                </p:column>  

                <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="Confirmation" />  
                    </f:facet>  
                    <h:outputText value="#{confirmation.confirmation}" />  
                </p:column>  
            </p:dataTable>              
        </h:form>  
    </h:body>
    </ui:define>
</ui:composition>